﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SceneFrame
{
    /// <summary>
    /// 过滤接口
    /// </summary>
    public class IFilter
    {
        /// <summary>
        /// 过滤器依附的场景
        /// </summary>
        public virtual Scene Scene { get; set; }

        /// <summary>
        /// 更新内容数据
        /// </summary>
        /// <param name="data"></param>
        public virtual void UpdateContextData(Dictionary<string, string> data) { }

        /// <summary>
        /// 尝试过滤
        /// </summary>
        /// <param name="trigger"></param>
        /// <returns></returns>
        public virtual bool Filter(Trigger trigger)
        {
            return false;
        }
    }
}
